<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body><script>
    function Animo(){
        this.sprce = "动物"
    }
    Animo.prototype = {
        say: function(){
            console.log("我拿到了");
        }
    }
    function Cat (name,color){
        this.name = name;
        this.color = color;
    }
    Cat.prototype = Object.create(Animo.prototype);
    const cat1 = new Cat("yang","123");
    cat1.say();
    </script>
</body>
</html>